<?php
include_once('common/header.php');

$intProvince = $objRequest->getParam('province', 0);
$intPage 	= $objRequest->getParam('page', 1);
$intLimit 	= PLACES_LIMIT;
$intOff 	= ($intPage-1)*$intLimit;
$intTotal 	= 0;
$objPlace 	= new Place();
$arrPlaces 	= $objPlace->getAll(0, 0, $intProvince, 0, $intOff, $intLimit, $intTotal);

$objCommon	= new Vfriend_Common();
$this->view->arrProvince	= $objCommon->getProvince();
$this->view->arrPlaces		= $arrPlaces;
$this->view->intProvince	= $intProvince;	

$this->view->intPage		= $intPage;
$this->view->intTotal		= $intTotal;
$this->view->intOffset		= $intOff;
$this->view->intLimit		= $intLimit;
$this->view->strUrl 		= Vfriend_Function::getUrl();
?>
